package com.sxmsy.factory1;

public class Test {

  public static void main(String[] args) {
    IProduct car = ProductFactory.createProductFactory("CAR");
    if (car != null) {
      car.build();
    }

    IProduct bike = ProductFactory.createProductFactory("BIKE");
    if (bike != null) {
      bike.build();
    }
  }
}
